"""
    练习：使用学生列表封装以下三个列表中的数据
    list_student_name = ["悟空","八戒","白骨精"]
    list_student_age = [28,25,30]
    list_student_sex = ["男","男","女"]
"""
class Student:
    def __init__(self,name="",age=0,sex=""):
        self.name = name
        self.age = age
        self.sex = sex

    def __str__(self):
        return f"{self.name}的年龄{self.age},性别{self.sex}"

list_student_name = ["悟空","八戒","白骨精"]
list_student_age = [28,25,30]
list_student_sex = ["男","男","女"]

list_student = [Student(*item) for item in zip(list_student_name,list_student_age,list_student_sex)]
for item in list_student:
    print(item)